# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# # See COPYING for license details.

pkgname=python2-requests-file
pkgver=1.4.3
pkgrel=6
pkgdesc='File transport adapter for Requests.'
arch=('any')
url='https://github.com/dashea/requests-file'
license=('Apache')
depends=('python2-six' 'python2-requests')
makedepends=('python2-setuptools')
source=("https://github.com/dashea/requests-file/archive/${pkgver}.tar.gz")
sha512sums=('30998998513ce9f21cdc37b9174f8236887aa2a40789f70f6fbfd7977059acad2edcf06e3db112f8ee59fdc9536174898229e926f680021232a16482d1a932b5')

build() {
  cd "requests-file-$pkgver"

  python2 setup.py build_ext --inplace
  python2 setup.py build
}

package() {
  cd "requests-file-$pkgver"

  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 \
    --skip-build
}

